package ren.steve.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import ren.steve.model.system.bean.SystemRoleMenu;
import ren.steve.system.mapper.SystemRoleMenuMapper;
import ren.steve.system.service.SystemRoleMenuService;

import java.util.List;

/**
 * @Author: LiuGuoJia
 * @Description:
 * @Date: Created in 2024/1/18 20:04
 */
@Service
public class SystemRoleMenuServiceImpl extends ServiceImpl<SystemRoleMenuMapper, SystemRoleMenu> implements SystemRoleMenuService {

  @Override
  public List<SystemRoleMenu> getSystemMenuByRoleId(String id) {
    QueryWrapper<SystemRoleMenu> wrapper = new QueryWrapper<>();
    wrapper.eq("role_id", id);
    return baseMapper.selectList(wrapper);
  }
}
